\usepackage{sectsty}
\sectionfont{\LARGE\clearpage}

\usepackage{hyperref}

\hypersetup{
  pdftitle={OWASP Mobile Application Security Verification Standard},
  pdfauthor={Bernhard Mueller, Sven Schleier, Jeroen Willemsen, Carlos Holguera and Jeroen Beckers},
  pdfsubject={The Mobile Application Security Verification Standard (MASVS) is a standard for mobile app security.},
  pdfkeywords={Mobile Security,iOS,Android,OWASP}
}

\usepackage{incgraph,tikz}

% Make "clones" of the commands
\let\originalparagraph\paragraph
\let\originalsubparagraph\subparagraph

% Redefine the commands using the "clones"
\renewcommand{\paragraph}[1]%
{\originalparagraph{#1}\hfill}
\renewcommand{\subparagraph}[1]%
{\originalsubparagraph{#1}\hfill}

% Remove all captions
\renewcommand{\caption}[2][]{}

% TODO for colored tables: add this to pandocker command -V table-use-row-colors=true

\usepackage{geometry}

\geometry{
    a4paper,
    left=20mm,
    top=20mm,
    headheight=40pt,
    voffset=20pt,
    footskip=50pt %40pt gives some more space at the bottom: test it!
}

%%\usepackage[space]{xeCJK}
%%\setCJKmainfont{Noto Sans CJK {{CJK-LANG}}} %JP,SC,TC,KR
%%\renewcommand\CJKglue{}% get proper linebreaking if spaces are provided

\usepackage{underscore} % Solves breaking line for **Protocol_KeyExchangeAlgorithm_WITH_BlockCipher_IntegrityCheckAlgorithm**

% The next 2 block fix several issues with non-breaking texttt environments:
% "The module app.package.attacksurface"
% "in clear text in /data/data/<package-name>/shared_-"
% "For example, \e search.quiet=true;"

\newcommand*\justify{%
  \fontdimen2\font=0.4em% interword space
  \fontdimen3\font=0.2em% interword stretch
  \fontdimen4\font=0.1em% interword shrink
  \fontdimen7\font=0.1em% extra space
  \hyphenchar\font=`\-% allowing hyphenation
}

\renewcommand{\texttt}[1]{%
  \begingroup
  \ttfamily
  \begingroup\lccode`~=`/\lowercase{\endgroup\def~}{/\discretionary{}{}{}}%
  \begingroup\lccode`~=`[\lowercase{\endgroup\def~}{[\discretionary{}{}{}}%
  \begingroup\lccode`~=`.\lowercase{\endgroup\def~}{.\discretionary{}{}{}}%
  \catcode`/=\active\catcode`[=\active\catcode`.=\active
  \justify\scantokens{#1\noexpand}%
  \endgroup
}

%% Workaround for pandoc bug #8460
%% https://github.com/jgm/pandoc/issues/8460
\newenvironment{RTL}{\beginR}{\endR}
